package com.coolw.cola.statemachine.service;

import com.coolw.cola.statemachine.dto.Order;
import com.coolw.cola.statemachine.enums.OrderEvent;

/**
 * 订单服务接口
 *
 * @author coolw
 * @date 2024/4/10 19:24
 */
public interface OrderService {

    /**
     * 关闭订单
     *
     * @param order 订单信息
     * @param event 订单事件
     */
    void close(Order order, OrderEvent event);
}
